perm filename FINAL.106[TEX,RWF] blob
sn#541601 filedate 1980-10-17 generic text, type C, neo UTF8
COMMENT ā VALID 00002 PAGES
C REC PAGE DESCRIPTION
C00001 00001
C00002 00002 CS106
C00004 ENDMK
Cā;
CS106
Fall Quarter Oct. 16, 1980
FINAL PROJECT
The input file contains a picture of the corner of a rectangle.
Because of effects of reflections, shadows, etc., it is not perfect; perhaps
it looks like this:
****** * ***
***********
*** ***** *
* ******** *
**********
******* *
** ***
*
Your program should try to find the two lines that delimit the rectangle. As
nearly as possible, all the asterisks should fall in one angle of the two lines,
and all the spaces outside. Output should give the equations of the lines, along
with a modified copy of the input file, with blanks inside the angle changed to
periods, and asterisks outside it changed to / . Your program need not be
mathematically perfect, but it should come close to the decision that the human
eye would.